

<script src="<?= base_url(); ?>third_party/ckeditor/ckeditor.js"></script>


<!-- 


<div class="heading-buttons">
	<h3 class="glyphicons blog">
		<i></i> Reviews Management
	</h3>
</div>
<div class="separator"></div>
<div class="widget widget-2 widget-body-white finances_summary">
	<div class="widget-head">
		<h4 class="heading glyphicons blog">
			<i></i> Add Review
		</h4>
		<span class="pull-right"> <a
			href="<?= base_url();?>secure/approval/reviews"> <span
				class="btn btn-inverse margin-right"> Go to Review List</span>
		</a>
		</span>
	</div>
	<div class="widget-body">
		<div class="row-fluid">
			<form name="banner" method="POST"
				action="<?= base_url();?>secure/approval/reviews/submit">
				<fieldset>
					<table class="table table-condensed">
						<tbody>
							<tr>
								<td colspan="3" class="table-no-broder"><?php
								$this->session->flashdata('message'); {
									$msg = $this->session->flashdata('message');
									echo '<font color="red">' . $msg . '</font>';
								}
								?>
								</td>
							</tr>
							<tr>
								<td class="left"><label> Name</label></td>
								<td><input name="name" type="text" size="40" /></td>
								<td></td>
							</tr>
							
							

							
					<tr>
						<td class="left">Comment</td>
						<td>
					  <textarea id="review_details" name="review_details"></textarea>
                        <script type="text/javascript">
                            CKEDITOR.replace( 'review_details',
                            {
                                skin : 'v2',
                                enterMode : CKEDITOR.ENTER_BR,
                                toolbar :
                                    [
                                    [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
                                    [ 'UIColor' ]
                                ]

                            });
                        </script></tr>
							<tr>
								<td></td>
								<td><label> <input type="submit" class="btn small" name="add"
										value="Add Review" />
								</label>
								</td>
								<td></td>
							</tr>
					
					</table>
				</fieldset>
			</form>
		</div>
	</div>
</div>
 -->
<div class="heading-buttons">
	<h3 class="glyphicons blog">
		<i></i> Reviews Management
	</h3>
</div>
<div class="separator"></div>
<div class="widget widget-2 widget-body-white finances_summary">
	<div class="widget-head">
		<h4 class="heading glyphicons blog">
			<i></i> Edit Review
		</h4>
		<span class="pull-right"> <a
			href="<?= base_url();?>reviews/admin/admin_review"> <span
				class="btn btn-inverse margin-right"> Go to Review List</span>
		</a>
		</span>
	</div>
	<div class="widget-body">
		<div class="row-fluid">
			<form name="banner" method="POST"
				action="<?= base_url();?>reviews/admin/admin_review/update">
				<fieldset>
					<table class="table table-condensed">
						<tbody>
							<tr>
								<td colspan="3" class="table-no-broder"><?php
								$this->session->flashdata('message'); {
									$msg = $this->session->flashdata('message');
									echo '<font color="red">' . $msg . '</font>';
								}
								?>
								</td>
							</tr>
							<tr>
								<td class="left"><label> Name</label></td>
								<td><input name="name" type="text" size="40" value="<?= $this->admin_member_model->get_member($review['details']->mem_id)->name;?>"  /></td>
								<td></td>
							</tr>
					<tr>
						<td class="left">Comment</td>
						<td>
					  <textarea id="review_details" name="review_details"><?= $review['details']->comment;?></textarea>
                        <script type="text/javascript">
                            CKEDITOR.replace( 'review_details',
                            {
                                skin : 'v2',
                                enterMode : CKEDITOR.ENTER_BR,
                                toolbar :
                                    [
                                    [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
                                    [ 'UIColor' ]
                                ]

                            });
                        </script></tr>
                        
							<tr>
								<td></td>
								<td><label> 
								<input type="hidden" name="id" value="<?= $id;?>"/>
								<input type="submit" class="btn btn-info pull-right" name="add"
										value="Update Review"  <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" />
								</label>
								</td>
								<td></td>
							</tr>
					
					</table>
				</fieldset>
			</form>
		</div>
	</div>
</div>
